import request from '@/utils/request.js'
export class flowService {
	// 流水列表
	static async getFlowingList(data) {
		return request({
			url: 'system/accountLog/listByPage',
			method: 'post',
			data
		})
	}
	// 银行卡列表
	static async getBankCardList(params) {
		return request({
			url: 'system/withdrawalType/accList',
			method: 'get',
			params
		})
	}
	// 根据卡号获取银行信息
	static async getBankCardList(params) {
		return request({
			url: 'system/withdrawalType/accList',
			method: 'get',
			params
		})
	}
	
	// 获取开户行
	static async getBankNameList(params) {
		return request({
			url: 'system/bank/list',
			method: 'get',
			params
		})
	}
	
	// 添加银行卡
	static async getAddBank(data) {
		return request({
			url: 'system/withdrawalType/add',
			method: 'post',
			data
		})
	}
	// 查看银行信息
	static async getBankDetail(params) {
		return request({
			url: 'system/withdrawalType/detail',
			method: 'get',
			params
		})
	}
	// 根据银行卡号获取银行信息
	static async identifyOpenAccountBank(params) {
		return request({
			url: 'system/bank/getInfoByCode',
			method: 'get',
			params
		})
	}
	// 删除银行
	static async deleteBank(params) {
		return request({
			url: 'system/withdrawalType/delete',
			method: 'get',
			params
		})
	}
	// 申请提现
	static async ApplyForWithdrawal(data) {
		return request({
			url: 'system/withdrawReview/addWithdrawal',
			method: 'post',
			data
		})
	}
	// 获取用户开通会员信息列表
	static async appMessageList(params) {
		return request({
			url: 'system/vipOrder/appMessageListByPage',
			method: 'get',
			params
		})
	}
	// 会员充值分页列表
	static async appVipListByPage(data) {
		return request({
			url: 'system/vip/appListByPage',
			method: 'post',
			data
		})
	}
	// vip充值创建订单
	static async vipCreateOrder(data) {
		return request({
			url: 'system/vipOrder/createOrder',
			method: 'post',
			data
		})
	}
	// 开通记录
	static async openingRecordList(data) {
		return request({
			url: 'system/vipOrder/appListByPage',
			method: 'post',
			data
		})
	}
	/**	region 商家提现相关api */
	// 添加
	static async getShopAddBank(data) {
		return request({
			url: 'system/withdrawalShopBank/save',
			method: 'post',
			data
		})
	}
	// 查询商家提现银行卡列表
	static async getShopBankList(data) {
		return request({
			url: 'system/withdrawalShopBank/list',
			method: 'post',
			data
		})
	}
	// 商家提现申请
	static async getWShopApply(data) {
		return request({
			url: 'system/withdrawalShop/apply/timelyPayment',
			method: 'post',
			data
		})
	}
	
	
	
	/** endgion */
	
	
	
	
	
	
}